{% extends "new_servicer.html" %}

{%block action%}/edit_servicer?id={{servicerinfos.id}}{%endblock%}

{% block title %}修改服务器信息{% endblock %}

{% block loginstr %}{{servicerinfos.loginstr}}{% endblock %}

{%block palce%}
    {% for palce in baseinfos.places %}
        {%if servicerinfos.place == palce[1]%}
            <option value="{{palce[0]}}" selected="selected">
        {%else%}
            <option value="{{palce[0]}}">
        {%endif%}
            {{palce[1]}}
            </option>
    {%endfor%}
{%endblock%}

{%block system%}
    {% for system in baseinfos.systems %}
        {%if servicerinfos.system == system[1]%}
            <option value="{{system[0]}}" selected="selected">
        {%else%}
            <option value="{{system[0]}}">
        {%endif%}
            {{system[1]}}
            </option>
    {%endfor%}
{%endblock%}

{%block type%}
    {% for type in baseinfos.types %}
        {%if servicerinfos.type == type[1]%}
            <option value="{{type[0]}}" selected="selected">
        {%else%}
            <option value="{{type[0]}}">
        {%endif%}
            {{type[1]}}
            </option>
    {%endfor%}
{%endblock%}

{%block sa%}
    {% for sa in baseinfos.sas %}
        {%if servicerinfos.sa == sa[1]%}
            <option value="{{sa[0]}}" selected="selected">
        {%else%}
            <option value="{{sa[0]}}">
        {%endif%}
            {{sa[1]}}
            </option>
    {%endfor%}
{%endblock%}

{%block project%}
    {% for project in baseinfos.projects %}
        {%if servicerinfos.project == project[1]%}
            <option value="{{project[0]}}" selected="selected">
        {%else%}
            <option value="{{project[0]}}">
        {%endif%}
            {{project[1]}}
            </option>
    {%endfor%}
{%endblock%}

{% block comment %}{{servicerinfos.comment}}{% endblock %}

{% block ip %}{{'\n'.join(servicerinfos.ip)}}{% endblock %}